from nextpy_org import styles
from nextpy_org.templates import template
import nextpy as xt

@template(route="BreadCrumb", title="4Components", description="4")
def breadcrumb() -> xt.Component:
    relative_path = 'nextpy_org/mdfiles/components/navigation/breadcrumb.md'
    with open(relative_path, encoding="utf-8") as readme:
        content = readme.read()
    return xt.markdown(content, component_map=styles.markdown_style)

@template(route="Link", title="4Components", description="4")
def link() -> xt.Component:
    relative_path = 'nextpy_org/mdfiles/components/navigation/link.md'
    with open(relative_path, encoding="utf-8") as readme:
        content = readme.read()
    return xt.markdown(content, component_map=styles.markdown_style)